import Util from '../../common/js/util'

/**

 * @param {number} enquiryPersonNum 询价人id
 * @param {string} platform 平台：sj-商家 fn-客户
 */
export const enquiryList = (params = {}) => {
	return Util.request({
		url: `/api/enquiry/list`,
		method: 'POST',
		data: params
	})
}

export const enquiryAdd = (params = {}) => {
	return Util.request({
		url: `/api/quote/add`,
		method: 'POST',
		data: params
	})
}

export const myProducts = (params = {}) => {
	return Util.request({
		url: `/api/product/myProducts`,
		method: 'POST',
		data: params
	})
}

export const quoteList = (params = {}) => {
	return Util.request({
		url: `/api/enquiry/quoteList`,
		method: 'POST',
		data: params
	})
}

export const quoteDetails = (params = {}) => {
	return Util.request({
		url: `/api/quote/findByQuoteId`,
		method: 'POST',
		data: params
	})
}


export const enquiryDetails = (params = {}) => {
	return Util.request({
		url: `/api/enquiry/findOne`,
		method: 'POST',
		data: params
	})
}
// 
export const enquiryOfferList = (params = {}) => {
	return Util.request({
		url: `/api/enquiry/offerList`,
		method: 'POST',
		data: params
	})
}


// export const quoteList = (params = {}) => {
// 	return Util.request({
// 		url: `/api/quote/list`,
// 		method: 'POST',
// 		data: params
// 	})
// }